package com.gakj.truck.third.api.mapper;

import com.gakj.truck.third.core.annotation.MyBatisMapper;
import com.gakj.truck.third.core.domain.TruckBrand;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by gc on 2016/5/25.
 */
@MyBatisMapper
public interface TruckBrandMapper {

    List<TruckBrand> getByName(@Param(value = "name") String name);

    TruckBrand getById(@Param(value = "id") Integer id);

    void delete(@Param(value = "id") Integer id);

    List<TruckBrand> getAll();

    Long save(TruckBrand truckBrand);
}
